Global Index
HTML5 JS API Index > SVG Tutorials & Specs

SVGFilterElement

Extends SVGElement. Implements SVGURIReference, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGUnitTypes, SVGURIReference, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGUnitTypes.

Properties
const unsigned short
SVG_UNIT_TYPE_OBJECTBOUNDINGBOX = 2
Corresponds to value 'objectBoundingBox'.
const unsigned short
SVG_UNIT_TYPE_UNKNOWN = 0
The type is not one of predefined types. It is invalid to attempt to define a new value of this type or to attempt to switch an existing value to this type.
const unsigned short
SVG_UNIT_TYPE_USERSPACEONUSE = 1
Corresponds to value 'userSpaceOnUse'.
SVGAnimatedString
className
Corresponds to attribute ‘class’ on the given element.
SVGAnimatedBoolean
externalResourcesRequired
Corresponds to attribute ‘externalResourcesRequired’ on the given element. Note that the SVG DOM defines the attribute ‘externalResourcesRequired’ as being of type SVGAnimatedBoolean, whereas the SVG language definition says that ‘externalResourcesRequired’ is not animated.
SVGAnimatedInteger
filterResX
Corresponds to attribute ‘filterRes’ on the given ‘filter’ element. Contains the X component of attribute ‘filterRes’.
SVGAnimatedInteger
filterResY
Corresponds to attribute ‘filterRes’ on the given ‘filter’ element. Contains the Y component (possibly computed automatically) of attribute ‘filterRes’.
SVGAnimatedEnumeration
filterUnits
Corresponds to attribute ‘filterUnits’ on the given ‘filter’ element. Takes one of the constants defined in SVGUnitTypes.
SVGAnimatedLength
height
The height coordinate of the rectangle, in user units. Exceptions on settingDOMException, code NO_MODIFICATION_ALLOWED_ERR Raised when the rectangle corresponds to a read only attribute or when the object itself is read only.
SVGAnimatedString
href
Corresponds to attribute ‘xlink:href’ on the given element.
SVGAnimatedEnumeration
primitiveUnits
Corresponds to attribute ‘primitiveUnits’ on the given ‘filter’ element. Takes one of the constants defined in SVGUnitTypes.
CSSStyleDeclaration
style
Corresponds to attribute ‘style’ on the given element. If the user agent does not support styling with CSS, then this attribute must always have the value of null.
SVGAnimatedLength
width
The width coordinate of the rectangle, in user units. Exceptions on settingDOMException, code NO_MODIFICATION_ALLOWED_ERR Raised when the rectangle corresponds to a read only attribute or when the object itself is read only.
SVGAnimatedLength
x
The x coordinate of the rectangle, in user units. Exceptions on settingDOMException, code NO_MODIFICATION_ALLOWED_ERR Raised when the rectangle corresponds to a read only attribute or when the object itself is read only.
DOMString
xmllang
Corresponds to attribute ‘xml:lang’ on the given element. Exceptions on settingDOMException, code NO_MODIFICATION_ALLOWED_ERR Raised on an attempt to change the value of a read only attribute.
DOMString
xmlspace
Corresponds to attribute ‘xml:space’ on the given element. Exceptions on settingDOMException, code NO_MODIFICATION_ALLOWED_ERR Raised on an attempt to change the value of a read only attribute.
SVGAnimatedLength
y
The y coordinate of the rectangle, in user units. Exceptions on settingDOMException, code NO_MODIFICATION_ALLOWED_ERR Raised when the rectangle corresponds to a read only attribute or when the object itself is read only.
Operations
CSSValue
getPresentationAttribute(DOMString name)
Returns the base (i.e., static) value of a given presentation attribute as an object of type CSSValue. The returned object is live; changes to the objects represent immediate changes to the objects to which the CSSValue is attached. Note: The getPresentationAttribute method is deprecated, and may be dropped from future versions of the SVG specification.
void
setFilterRes(unsigned long filterResX, unsigned long filterResY)
Sets the values for attribute ‘filterRes’. Parametersunsigned long filterResX The X component of attribute ‘filterRes’. unsigned long filterResY The Y component of attribute ‘filterRes’. ExceptionsDOMException, code NO_MODIFICATION_ALLOWED_ERR Raised on an attempt to change the value of a read only attribute.